package com.yanghang.service.impl;

import com.yanghang.dao.CarTypeDao;
import com.yanghang.entity.CarType;
import com.yanghang.service.CarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarTypeServiceImpl implements CarTypeService {
    @Autowired
    private CarTypeDao ctd;
    @Override
    public List<CarType> selectAllType() {
        return ctd.selectList(null);
    }
}
